<?php

require_once "../congfig/config.php";
require_once "../lib/common.php";
if (empty($_POST['p1'])) {
    exit(jsoncall(-1,"无提交内容"));
}
$result = $_POST['p1'];
$size = count($result);
$i=0;

for(;$i<$size;++$i)
{
    $sql = "UPDATE proinfor SET pRank='5'  WHERE id ='$result[$i]'";
    $query = $conn->query($sql);
}
exit(jsoncall(1,"修改成功"));
